//q3.cpp
//This programes takes a number and prints a ruler accordingly.
//
//Binyamin 4 Jan 2018
//==========================================================================================================

#include<iostream>
#include<math.h>

using namespace std;

//drawRuler
//intput: a number
//output: a ruler with the number as a length
void drawRuler(int k)
{
	if(k>0)
	{
		drawRuler(k-1);
		for(int i=0;i<k;i++)
			cout << '-';
		cout << endl; // << '-' << endl;
		drawRuler(k-1);
	}
}

//1. prompt for a number.
//2. capture the number.
//3. print a ruler accordingly.
int main()
{
	int num; //num - user input.
	cout << "Please enter a number" << endl;
	cin >> num;
	drawRuler(num);
	return 0;
}
//output
//Please enter a number
//4
//-
//--
//-
//---
//-
//--
//-
//----
//-
//--
//-
//---
//-
//--
//-
